 <?php echo CHtml::cssFile(Yii::app()->baseUrl.'/css/news.css'); ?>
<div id="global">
<!-- Begin Left -->
<div id="left">
		<h1 class="title-news"><?php echo $row->subject ; ?></h1>
		<div class="line-red line-news"></div>
		<div class="time-line">
			<?php 
				echo "Ngày đăng: " . MyHelper::parse_date_vn($row->create_time); 
			?>
        </div>
		<div class="content-news">
            <?php
				echo $row->content;
			?>	
		</div>
				<div class="other-news">
			<h5>Các tin khác :</h5>
			<ul>
            	<?php
					$rows = article::model()->findAll(array(
						"condition" => "enable = 1 AND acategory_id = " . $row->acategory_id
					));
					
					foreach($rows as $roww)
					{
						echo "<li>";
							echo CHtml::link(
								$roww->subject,
								Yii::app()->baseUrl."/tin-tuc/" . $roww->alias
							);
						echo "</li>";
					}
				?>
			</ul>
		</div>
	
</div>
<!-- End left -->

<!-- Begin right -->
<div id="right">
	<div class="right-product">
	<h4>CHO THUÊ <span>TỐT NHẤT</span></h4>
	<div class="r-view-all"><a href="#">Tất cả</a></div>
	<div class="line-red"></div>
		<?php
			$product_array = product::model()->findAll(array(
				"condition" => "enable =1 ",
				"limit" => 9
			));
			
			foreach($product_array as $product)
			{
				//Each Right Product
				echo "<div class='right-listproduct'>";
					//echo "<img class='right-img-p' src='img/p-right.gif'/>";
					echo $product->image;
					echo "<div class='p-area'><span>";
						echo $product->dien_tich . "m²";
					echo "</span></div>";
					echo "<div class='p-room'><span>";
					echo $product->so_phong . " Phòng";
					echo "</span></div>";
					echo "<div class='p-month'><span>";
						echo $product->price;
					echo "</span></div>";
				echo "</div>";
				 "</div>";
                echo CHtml::link(
						 	$product->name,
							Yii::app()->baseUrl."/bat-dong-san/". 
							$product->id."-".MyHelper::clear_sign($product->name)
						);			
				echo "<div class='r-line'></div>";
				//Each Right Product
			}
		?>
	</div>
</div>
<!-- End right -->
</div>